Extension point treeInstance
Documentation
Used to register actual publication tree instances, where we define the factory to use, the underlying tree to use, its name / title.
Here is the default contribution:
<publicationTreeConfig factory="CoreProxy" localSectionTree="true"
name="DefaultSectionsTree"
title="label.publication.tree.local.sections" tree="RootSectionsCoreTree">
<parameters>
<!-- <parameter name="RootPath">/default-domain/sections</parameter> -->
<parameter name="RelativeRootPath">/sections</parameter>
<parameter name="enableSnapshot">true</parameter>
<parameter name="iconExpanded">/icons/folder_open.gif</parameter>
<parameter name="iconCollapsed">/icons/folder.gif</parameter>
</parameters>
</publicationTreeConfig>
Parameters: - RootPath: it's used when you want to define the root publication node of your PublicationTree. You can't use RootPath AND RelativeRoothPath parameter.
- RelativeRootPath: used when you just want to define a relative path (without specifying the domain path). A PublicationTree instance will be created automatically for each Domain, appending the RelativeroothPath value to each Domain.
- iconExpanded and iconCollapsed: specify which icons to use when displaying the PublicationTree on the interface.
You can contribute other kinds of PublicationTree: here is a contribution for a new tree that will be used to publish on the file system, on '/opt/publishing-folder'.
<publicationTreeConfig factory="LocalFile" localSectionTree="false"
name="FSTree" title="label.publication.tree.fileSystem" tree="LocalFSTree">
<parameters>
<parameter name="RootPath">/opt/publishing-folder</parameter>
<parameter name="enableSnapshot">true</parameter>
<parameter name="iconExpanded">/icons/folder_open.gif</parameter>
<parameter name="iconCollapsed">/icons/folder.gif</parameter>
</parameters>
</publicationTreeConfig>
Contribution Descriptors
- Class: org.nuxeo.ecm.platform.publisher.descriptors.PublicationTreeConfigDescriptor
Existing Contributions
Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.
-
<extension point="treeInstance" target="org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl"> <documentation> Contribute the default PublicationTree instance to be able to publish documents in local sections. </documentation> <publicationTreeConfig factory="CoreProxy" localSectionTree="true" name="DefaultSectionsTree" title="label.publication.tree.local.sections" tree="RootSectionsCoreTree"> <parameters> <!-- <parameter name="RootPath">/default-domain/sections</parameter> --> <parameter name="RelativeRootPath">/sections</parameter> <parameter name="enableSnapshot">true</parameter> <parameter name="iconExpanded">/icons/folder_open.gif</parameter> <parameter name="iconCollapsed">/icons/folder.gif</parameter> </parameters> </publicationTreeConfig> </extension>
-
<extension point="treeInstance" target="org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl"> <publicationTreeConfig factory="CoreProxyWithWorkflow" localSectionTree="true" name="DefaultSectionsTree" title="label.publication.tree.local.sections" tree="RootSectionsCoreTree"> <parameters> <!-- <parameter name="RootPath">/default-domain/sections</parameter> --> <parameter name="RelativeRootPath">/sections</parameter> <parameter name="enableSnapshot">true</parameter> <parameter name="iconExpanded">/icons/folder_open.gif</parameter> <parameter name="iconCollapsed">/icons/folder.gif</parameter> </parameters> </publicationTreeConfig> </extension>
-
<extension point="treeInstance" target="org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl"> <documentation> Override the default PublicationTree used in Nuxeo to use the one handling Rendition documents. </documentation> <publicationTreeConfig factory="RenditionPublication" localSectionTree="true" name="DefaultSectionsTree" title="label.publication.tree.local.sections" tree="RenditionPublicationCoreTree"> <parameters> <!-- <parameter name="RootPath">/default-domain/sections</parameter> --> <parameter name="RelativeRootPath">/sections</parameter> <parameter name="enableSnapshot">true</parameter> <parameter name="iconExpanded">/icons/folder_open.gif</parameter> <parameter name="iconCollapsed">/icons/folder.gif</parameter> </parameters> </publicationTreeConfig> </extension>